//
//  Common.swift
//  weibo
//
//  Created by  郭航 on 16/6/25.
//  Copyright © 2016年 郭航. All rights reserved.
//

import UIKit

//App Key：337089939
//App Secret：9039d4a3f697360445d02733676a3d8f

let APPKey = "337089939"
let APPSecret = "9039d4a3f697360445d02733676a3d8f"
let APPRedirect_uri = "https://www.baidu.com"

let NotChangeKeyWindows = "NotChangeKeyWindows"

let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height

let APPTintColor = UIColor.orangeColor()


func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}

func randomColor() -> UIColor {
    return RGB(red: CGFloat(random()%256), green: CGFloat(random()%256), blue: CGFloat(random()%256))
}
